import { createStore } from "vuex";
import vuexp from "vuex-persistedstate";
export default createStore({
  state: {
    tokens:localStorage.getItem('token')||'',
  },
  getters: {
    token(state){
      return state.tokens
    }
  },
  mutations: {
    token(state, token) {
      state.tokens = token;
      localStorage.setItem('token',token)
      
    },
    getuser(state){
      state.tokens = ''
    }
  },
  actions: {},
  modules: {},
});
